<?php
/** 
 * 
 *
 * @package api
 * @author Richard Fullmer <php-api@byu.edu>
 * 
 * @version 1.0
 */
 
//require_once( 'LDAP_Login.php' );
 
/**
 * This class is used to validate user input
 * 
 * @package api
 * @author Richard Fullmer <php-api@byu.edu>
 * 
 * @version 1.0
 */
abstract class Validator {

	static public function email($email) {
		if(ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$]", $email))
			return false;
		else
			return true;
	}
	
	
	// not working right
	/*
	static public function checkValidNetID($ldap_server, $manager_netID) {
		$ldap = new LDAP_Login($ldap_server, $manager_netID);
		
		return $ldap->authenticate($manager_netID, "");
	}
	*/
	
}
?>
